import unittest
from utils import driver
from time import sleep
from pages.login_page import LoginPage

class BaseCase(unittest.TestCase):
    def setUp(self) -> None:
        self.driver = driver.chrome()
        username,password = 'admin','admin123'
        lp = LoginPage(self.driver)
        #打开网站
        lp.open()
        lp.username_input(username)
        lp.password_input(password)
        lp.sumbit_click()

    def tearDown(self) -> None:
        self.driver.quit()
